package com.product.system.controller;

import cn.hutool.core.lang.tree.Tree;
import com.product.system.domain.ArgpTradesmanCity;
import com.product.system.service.ArgpTradesmanCityService;
import com.product.system.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("tradesmanCity")
public class ArgpTradesmanCityController {//三级联动

    @Autowired
    ArgpTradesmanCityService argpTradesmanCityService;

//    @RequestMapping("cityList")
//    private Result cityList(){
//        List<ArgpTradesmanCity> list=argpTradesmanCityService.cityList();
//        return Result.success(list);
//    }

    @RequestMapping("selectAllCity")
    public List<Tree<Object>> selectAllCity(){
        return argpTradesmanCityService.selectAllCity();
    }

}
